﻿using System;
using ThePresenter.Polls;

namespace ThePresenter.Net.PresenterCom.Actions
{
	[Serializable]
	class PublishPollAction : PresentationAction
	{
		private Poll Poll;

		public PublishPollAction(Poll p)
		{
			this.Poll = p;
		}

		public override void Execute(Presentation Target)
		{
			Target.AddPoll(this.Poll);
		}
	}
}
